#pragma once

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>

#define SLDateType int 

typedef struct SqList
{
	SLDateType* date;
	size_t size;
	size_t capacity;
}SqList;


void Init(SqList* sl);
void Destroy(SqList* sl);
void PushBack(SqList* sl, SLDateType date);
void PopBack(SqList* sl);
void PushFront(SqList* sl, SLDateType date);
void PopFront(SqList* sl);
void Inseart(SqList* sl, int pos, SLDateType date);
void Erase(SqList* sl, int pos);
int Search(SqList* sl, SLDateType date);
void Print(SqList* sl);
